home *** CD-ROM | disk | FTP | other *** search
/ Computer Select (Limited Edition) / Computer Select.iso / dobbs / v16n10 / string.exe / STRIPL.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-30  |  401 b   |  26 lines

  1. #include <string.h>
  2. #include <ctype.h>
  3. #include <errno.h>
  4. #include <string.hpp>
  5.  
  6. String operator+(const String &a, const String &b)
  7. {
  8.     String t = a;
  9.     t += b;
  10.     return t;
  11. }
  12.  
  13. String operator+(const String &a, const char *s)
  14. {
  15.     String t = a;
  16.     t += s;
  17.     return t;
  18. }
  19.  
  20. String operator+(const char *s, const String &a)
  21. {
  22.     String t = s;
  23.     t += a;
  24.     return t;
  25. }
  26.